﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Lon.Server
{
    /// <summary>
    /// 帧标志
    /// </summary>
    public enum DataFrameFlag
    {
        /// <summary>
        /// 数据帧
        /// </summary>
        Data=0x8f,
        /// <summary>
        /// 心跳帧
        /// </summary>
        Heartbeat=0x0F,
        UnKnow = -1
    }
    public enum DataDir
    {
        StationData = 0xE0,
        TerminalToServer = 0xE1,
        SeverAck = 0xE2,
    }  

    /// <summary>
    /// 数据转发方式
    /// </summary>
    public enum TransType
    {
        /// <summary>
        /// 不转发
        /// </summary>
        DisableTrans=0,
        /// <summary>
        /// 转发至连接的客户端
        /// </summary>
        ToConnectedClient,
        /// <summary>
        /// 相所有的客户端转发
        /// </summary>
        ToAllClientAndAck
    }

    public enum MajorDataType
    {
        AnalogRealVale=0x11,
        AnalogLastVale=0x12,
        AnalogDayReport= 0x13,
        AnalogCurve =0x15,
        Replay = 0x16,
        KglRealValue=0x17,
        RecordCurve = 0x18,
        Statistics =0x19,
        Alarm   =  0x1A,
        /// <summary>
        /// 列控信息
        /// </summary>
        TransContrlMessage=0x1c,
        SystemState = 0x1D,
        WorkLog =0x1e,
        StationStartLog=0x1F,
        ConfigFileMessage = 0x21,
        NetStatus = 0x23,
        /// <summary>
        /// 高频模拟量日曲线
        /// </summary>
        HighFreqAnalogCurve=0x30,
        /// <summary>
        /// 高频模拟量回放
        /// </summary>
        HighFreqAnalogReplay=0x31,
        /// <summary>
        /// 空调控制
        /// </summary>
        AirControl= 0x31,
        /// <summary>
        /// 智能分析
        /// </summary>
        ArtificialIntelligence=0x39,
        /// <summary>
        /// 各厂家自定义功能
        /// </summary>
        PrivateFeature=0x40,
        /// <summary>
        /// C2及以上客专列控信息
        /// </summary>
        ATP=0x51,
        /// <summary>
        /// 配置文件上传
        /// </summary>
        ConfigFileUp=0x51

    }


    public enum  NodeType
    {
        Unknow,
        Station,
        Terminal,
        AppServer,
        FrontServer,
        MangerClient,
        DataServer
    }
    
}
